package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.BaseCapacityRule;

import java.util.List;

public interface BaseCapacityRuleService {

    /**
     * 查询所有
     *
     * @param searchValue
     * @return
     */
    List<BaseCapacityRule> getAllBaseCapacityRule(String searchValue, Integer lineBaseBigTypeId, Integer lineBaseSmallTypeId);

    /**
     * 更新
     *
     * @param baseCapacityRule
     * @return
     */
    Result updateBaseCapacityRule(BaseCapacityRule baseCapacityRule);

    /**
     * 新增或者更新
     *
     * @param mode
     * @param baseCapacityRule
     * @return
     */
    Result addOrUpdateBaseCapacityRule(String mode, BaseCapacityRule baseCapacityRule);

    /**
     * 删除
     *
     * @param baseCapacityRuleId
     * @return
     */
    Result deleteBaseCapacityRule(Integer baseCapacityRuleId);
}
